package com.maimao.model.order.es;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * @author MaoLin Wang
 * @date 2021/3/29 10:37 下午
 */
@Getter
@Setter
@AllArgsConstructor
@NoArgsConstructor
@JsonInclude(JsonInclude.Include.NON_NULL)
public class EsOrderGoods implements Serializable {


    public static final String COMMENT = "comment";
    public static final String GOODS_ID = "goodsId";
    private static final long serialVersionUID = -7892741721910529354L;
    public static final String TITLE = "title";
    public static final String SHIPPED_STATUS = "shippedStatus";
    /**
     * 订单商品详情id
     */
    private String id;

    /**
     * 订单-店铺 id
     */
    private String orderShopId;

    private Boolean comment;

    private String skuId;

    private String goodsId;

    private String title;

    private Integer num;

    private BigDecimal price;

    private String brandId;

    private Integer shippedStatus;

    /**
     * 确认收货时间
     */
    private LocalDateTime receiveTime;

    /**
     * 赠送积分数
     */
    private Integer integral;

    @Override
    public String toString() {
        return "EsOrderGoods{" +
                "id='" + id + '\'' +
                ", orderShopId='" + orderShopId + '\'' +
                ", comment=" + comment +
                ", skuId='" + skuId + '\'' +
                ", goodsId='" + goodsId + '\'' +
                ", title='" + title + '\'' +
                ", num=" + num +
                ", price=" + price +
                ", brandId='" + brandId + '\'' +
                ", shippedStatus=" + shippedStatus +
                ", receiveTime=" + receiveTime +
                ", integral=" + integral +
                '}';
    }
}
